package IA;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 *
 * @author Christopher
 */
public class SpecialOffers {

    private List<Offer> specialOffer;
    
    public SpecialOffers(){
        specialOffer = new ArrayList<Offer>();
    }
    
    public void addOffer(String name, String description){
        specialOffer.add(new Offer(name, description));
    }
    
    public void removeOffer(Integer index){
        specialOffer.remove(specialOffer.get(index));
    }
    
    public List<Offer> getSpecialOffers(){
        return Collections.unmodifiableList(specialOffer);
    }
    
}
